package com.changgou.goods.feign;

import com.changgou.entity.Result;
import com.changgou.goods.pojo.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ProjectName: springbootthymeleaf
 * @Package: com.changgou.goods.feign
 * @ClassName: CategoryFeign
 * @Author: 孙明田
 * @Description:
 * @Date: 2020/6/21 16:22
 * @Version: 1.0
 */

@FeignClient(name = "goods")
public interface CategoryFeign {

    @GetMapping("/category/{id}")
    Result<Category> findById(@PathVariable Integer id);
}
